# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

with Files('**'):
    BUG_COMPONENT = ('Core', 'XP Toolkit/Widgets: XUL')

XPIDL_SOURCES += [
    'nsITreeBoxObject.idl',
    'nsITreeColumns.idl',
    'nsITreeContentView.idl',
    'nsITreeSelection.idl',
    'nsITreeView.idl',
]

XPIDL_MODULE = 'layout_xul_tree'

EXPORTS += [
    'nsTreeColFrame.h',
    'nsTreeColumns.h',
    'nsTreeUtils.h',
]

EXPORTS.mozilla.dom += [
    'TreeBoxObject.h'
]

SOURCES += [
    'nsTreeBodyFrame.cpp',
    'nsTreeColFrame.cpp',
    'nsTreeColumns.cpp',
    'nsTreeContentView.cpp',
    'nsTreeImageListener.cpp',
    'nsTreeSelection.cpp',
    'nsTreeStyleCache.cpp',
    'nsTreeUtils.cpp',
    'TreeBoxObject.cpp',
]

FINAL_LIBRARY = 'xul'
LOCAL_INCLUDES += [
    '..',
    '../../base',
    '../../forms',
    '../../generic',
    '../../style',
    '/dom/base',
]

if CONFIG['GNU_CXX']:
    CXXFLAGS += ['-Wno-error=shadow']
